Fixed GtkTreeMenu to not infinitely recurse when building submenus.
authorTristan Van Berkom <tristan.van.berkom@gmail.com>
Fri, 19 Nov 2010 04:30:30 +0000 (13:30 +0900)
committerTristan Van Berkom <tristan.van.berkom@gmail.com>
Tue, 4 Jan 2011 14:37:06 +0000 (23:37 +0900)
commit963db86d23c5c2245d74672a6eaace89df491caf
treef4fe112389eb94b6c6d9c7eae7b8be5d1723c3eb
parentc690402446f2e75f63660cc838fa08e77c95d2b6
Fixed GtkTreeMenu to not infinitely recurse when building submenus.

GtkTreeMenu needs to only populate it's submenus when set_root()
is called, we were populating it when the model is set which cause
the tree to be infinitely populated as the root is NULL by default.

Also call gtk_menu_set_reserve_toggle_thingy (FALSE) to not reserve
space for the toggle size.
gtk/gtktreemenu.c
gtk/gtktreemenu.h